import Vue from 'vue'
import Router from 'vue-router'


import GoodsList from '../views/GoodsList.vue';
import Cart from '../views/Cart.vue';
import Address from '../views/Address.vue';
import OrderConfirm from '../views/OrderConfirm.vue';
import OrderSuccess from '../views/OrderSuccess.vue';

Vue.use(Router);
export default new Router({
  routes: [
    {
      path: '/',
      name : GoodsList,
      component: GoodsList,
    },
    {
      path: '/cart',
      name : 'cart',
      component: Cart,
    },
    {
      path: '/address',
      name : 'address',
      component: Address,
    },
    {
      path: '/orderConfirm',
      name : 'OrderConfirm',
      component: OrderConfirm,
    },
    {
      path: '/orderSuccess',
      name : 'OrderSuccess',
      component: OrderSuccess,
    },
  ]
})
